<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>添加用户</title>
    <script type="text/javascript" src="../../../resources/js/lib/My97DatePicker/WdatePicker.js"
            th:src="@{/resources/js/lib/My97DatePicker/WdatePicker.js}"></script>
</head>
<body>
<form action="/user/add" th:action="@{/user/addOrUpdate}" method="post">

    <label for="name">姓名：</label>
    <input type="text" name="name" id="name"/>

    <br>

    <label for="username">用户名：</label>
    <input type="text" name="username" id="username"/>

    <br>

    <label for="password">密码：</label>
    <input type="text" name="password" id="password"/>

    <br>

    <label for="age">年龄：</label>
    <input type="text" name="age" id="age" />
    <br>

    <label for="gender">性别：</label>
    <select name="gender" id="gender">
        <option value="MALE" selected>男</option>
        <option value="FEMALE">女</option>
    </select>

    <br>

    <label for="birthday">生日</label>
    <input type="text" name="birthday" id="birthday" class="Wdate"
           onclick="WdatePicker({isShowClear:false,readOnly:true})"/>

    <br>

    <input type="submit" value="提交"/>
</form>
</body>
</html>